#ifndef __I_CANVAS_H__
#define __I_CANVAS_H__

#include "win_defines.h"
#include "Stroke.h"

class ICanvas {
public:
   /*
    * Return 0 on success.
    * And rc contains the RECT for displaying the text.
    */
   virtual int GetTextRect(const Text& txt, RECT& rc) = 0;
   virtual void DrawStroke(CStroke* stk, HDC hdc=NULL) = 0;
   virtual void DrawTurtle() = 0;
};

#endif // __I_CANVAS_H__
